package com.zjj7;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SLF4JLOGBACKTest {
    public static Logger log= LoggerFactory.getLogger(SLF4JLOGBACKTest.class);



    public static String test(String msg) {
        // 记录debug级别的信息
        log.debug(log.getClass().getName()+" This is debug message."+msg);
        // 记录info级别的信息
        log.info(log.getClass().getName()+" This is info message."+msg);
        // 记录error级别的信息
        log.error(log.getClass().getName()+" This is error message."+msg);
        return "";
    }
}
